<script>
export default {
  name: "ModifyItem",
  props:['remark'],
  data(){
    return {
      input:""
    }
  },
  watch: {
    remark:{
      immediate:true,
      handler(value){
        this.input = value
      }
    }
  }
}
</script>

<template>
  <div>
    <el-input v-model="input" placeholder="请填写备注">

    </el-input>
    <div style="margin: 0 auto; width: 100px">
      <button class="mod_item_btn" @click="$emit('changeRemark',input)">保存</button>
    </div>

  </div>

</template>

<style scoped>
.mod_item_btn{
  margin-top: 20px;
  height: 50px;
  width: 100px;
  font-size: 18px;
  font-weight: bold;
  background-color: #409EFF;
  color: #ffffff;
  cursor: pointer;
  border: none;
  border-radius: 15px;
}
</style>